/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.bo.ExaminationTrainRelBO;
import com.xy.biz.ts.domain.query.ExaminationTrainRelQuery;

/**
 *
 *
 * @author zgy
 * @date 2021-7-8
 */
public interface ExaminationTrainRelManager {

	/**
	 * 保存
	 *
	 * @param examinationTrainRelBO
	 */
	int saveExaminationTrainRel(ExaminationTrainRelBO examinationTrainRelBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllExaminationTrainRel(Collection<ExaminationTrainRelBO> collection);

	/**
	 * 更新
	 *
	 * @param examinationTrainRelBO
	 */
	int updateExaminationTrainRel(ExaminationTrainRelBO examinationTrainRelBO);

	/**
	 * 更新
	 *
	 * @param examinationTrainRelBO
	 */
	int disableExaminationTrainRel(ExaminationTrainRelBO examinationTrainRelBO);

	/**
	 * 删除
	 *
	 * @param examinationTrainRelId
	 */
	int deleteExaminationTrainRel(Long examinationTrainRelId);

	/**
	 * 查找一个
	 *
	 * @param examinationTrainRelId
	 * @return
	 */
	ExaminationTrainRelBO getExaminationTrainRel(Long examinationTrainRelId);
	ExaminationTrainRelBO getExaminationTrainRelByTrainId(Long trainId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<ExaminationTrainRelBO> listExaminationTrainRelById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<ExaminationTrainRelBO> listExaminationTrainRel(ExaminationTrainRelQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countExaminationTrainRel(ExaminationTrainRelQuery query);

}
